<?php
$array = array(
		'custId'	=> '123545',
		'encode'	=> '2b7ca9af3c552641d57360469794d0a9',
		'time'		=> time(),
		'productId'	=> 123,
		'link_man'	=> array(
				'link_man' => '票付通糯米',
				'link_phone	'	=> '15959110123',
				'link_email'	=> '946935345@qq.com'
		),
		'thirdOrderId'	=> 'nuomi20151016001',
		'thirdOrderNum'	=> 2,
		'thirdTicketId'	=> 001
);
$request = post($array); 
function post($request_arr){
	$url = 'http://www.12301.cc/module/wxh/nm/test.php'
	$post_data = http_build_query($request_arr);
	// print_r($post_data);exit;
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_POST, 1); 
	curl_setopt($ch, CURLOPT_HEADER, 0); 
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL,$url);  
	curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); 
	$reponse = curl_exec($ch);
	curl_close($ch);
	return $reponse;
}
?>